package com.learn.acm.bytedance;

/**
 * @author zhongshitao
 * @date 2020/9/29 9:53 上午
 */
public class LazySingle {

    private volatile static LazySingle instance = null;

    private LazySingle() {};


    public static LazySingle getInstance() {
        if (null == instance) {
            synchronized (LazySingle.class) {
                if (null == instance) {
                    instance = new LazySingle();
                }
            }
        }
        return instance;
    }
}
